package com.erp.erp_entitys.warehouse.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 仓库管理-资源样品明细表(ResourceSamplesDetail)实体类
 *
 * @author lst
 * @since 2020-11-28 15:17:44
 */
public class ResourceSamplesDetailEntity implements Serializable {
    private static final long serialVersionUID = 884728790639439629L;
    /**
    * 主键id
    */
    private Integer id;
    /**
    * 资源样品主表id
    */
    private Integer parentId;
    /**
     * 领出明细id
     */
    private Integer takeOutId;
    /**
    * 产品图片
    */
    private String img;
    /**
    * 产品编码
    */
    private String productCode;
    /**
    * 规格编码
    */
    private String specificationCode;
    /**
    * 规格说明
    */
    private String specificationExplanation;
    /**
    * 产品中文名称
    */
    private String productCname;
    /**
    * 产品英文名称
    */
    private String productEname;
    /**
    * 产品中文描述
    */
    private String productCdesc;
    /**
    * 产品英文描述
    */
    private String productEdesc;
    /**
    * 单价
    */
    private BigDecimal unitPrice;
    /**
    * 数量
    */
    private BigDecimal productNum;
    /**
    * 单位
    */
    private String productUnit;
    /**
     * 单位编码
     */
    private String productUnitCode;
    /**
    * 货号
    */
    private String articleNo;
    /**
     * 供应商编码
     */
    private String supplierCode;
    /**
     * 供应商名称
     */
    private String supplierName;
    /**
    * 批次号
    */
    private String lotNo;
    /**
    * 资源样品仓库编码
    */
    private String warehouseId;
    /**
    * 资源样品仓库名称
    */
    private String warehouseName;
    /**
    * 创建时间
    */
    private Date createDate;
    /**
    * 修改时间
    */
    private Date modifyTime;
    /**
    * 是否有效(0:无效 1:有效)
    */
    private Integer valid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getSpecificationCode() {
        return specificationCode;
    }

    public void setSpecificationCode(String specificationCode) {
        this.specificationCode = specificationCode;
    }

    public String getSpecificationExplanation() {
        return specificationExplanation;
    }

    public void setSpecificationExplanation(String specificationExplanation) {
        this.specificationExplanation = specificationExplanation;
    }

    public String getProductCname() {
        return productCname;
    }

    public void setProductCname(String productCname) {
        this.productCname = productCname;
    }

    public String getProductEname() {
        return productEname;
    }

    public void setProductEname(String productEname) {
        this.productEname = productEname;
    }

    public String getProductCdesc() {
        return productCdesc;
    }

    public void setProductCdesc(String productCdesc) {
        this.productCdesc = productCdesc;
    }

    public String getProductEdesc() {
        return productEdesc;
    }

    public void setProductEdesc(String productEdesc) {
        this.productEdesc = productEdesc;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getProductNum() {
        return productNum;
    }

    public void setProductNum(BigDecimal productNum) {
        this.productNum = productNum;
    }

    public String getProductUnit() {
        return productUnit;
    }

    public void setProductUnit(String productUnit) {
        this.productUnit = productUnit;
    }

    public String getArticleNo() {
        return articleNo;
    }

    public void setArticleNo(String articleNo) {
        this.articleNo = articleNo;
    }

    public String getLotNo() {
        return lotNo;
    }

    public void setLotNo(String lotNo) {
        this.lotNo = lotNo;
    }

    public String getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public String getProductUnitCode() {
        return productUnitCode;
    }

    public void setProductUnitCode(String productUnitCode) {
        this.productUnitCode = productUnitCode;
    }

    public Integer getTakeOutId() {
        return takeOutId;
    }

    public void setTakeOutId(Integer takeOutId) {
        this.takeOutId = takeOutId;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }


    /**
     * 重写toString
     */
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ResourceSamplesDetailEntity").append('[')
                .append("id=")
                .append(id)
                .append(",parentId=")
                .append(parentId)
                .append(",takeOutId=")
                .append(takeOutId)
                .append(",img=")
                .append(img)
                .append(",productCode=")
                .append(productCode)
                .append(",specificationCode=")
                .append(specificationCode)
                .append(",specificationExplanation=")
                .append(specificationExplanation)
                .append(",productCname=")
                .append(productCname)
                .append(",productEname=")
                .append(productEname)
                .append(",productCdesc=")
                .append(productCdesc)
                .append(",productEdesc=")
                .append(productEdesc)
                .append(",unitPrice=")
                .append(unitPrice)
                .append(",productNum=")
                .append(productNum)
                .append(",productUnit=")
                .append(productUnit)
                .append(",productUnitCode=")
                .append(productUnitCode)
                .append(",articleNo=")
                .append(articleNo)
                .append(",supplierCode=")
                .append(supplierCode)
                .append(",supplierName=")
                .append(supplierName)
                .append(",lotNo=")
                .append(lotNo)
                .append(",warehouseId=")
                .append(warehouseId)
                .append(",warehouseName=")
                .append(warehouseName)
                .append(",createDate=")
                .append(createDate)
                .append(",modifyTime=")
                .append(modifyTime)
                .append(",valid=")
                .append(valid)
                .append(']');
        return sb.toString();
    }
}